function deathScreen ( Player )
	--set camera position to where you died, maybe increased z
	--camera follow enemy player
	setTimer ( fadeCamera, 2000, false, 0, 100, 100, 100  )
	--fade in killer display same as fadeCamera
	--reset to normal camera
	--immediate fade back in
	--hide killer text immediately
end

function resourceStart()
	executeSQLCreateTable ( "apb_data", "'threat', 'rank', 'title_c', 'title_e', 'bad_names'" )
	local resources = { "apb_cc", "apb_login" }
	local bad_names_sql = executeSQLSelect ( "apb_data", "bad_names" )
	local threat_sql = executeSQLSelect ( "apb_data", "threat" )
	local rank_sql = executeSQLSelect ( "apb_data", "rank" )
	local title_c_sql = executeSQLSelect ( "apb_data", "title_c" )
	local title_e_sql = executeSQLSelect ( "apb_data", "title_e" )
	local threat = { "Green", "Bronze", "Silver", "Gold" }
	local rank = { 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160, 170, 180, 190, 200 }
	local title_c = { "Scrub", "Lookout", "Burglar", "Looter", "Rioter", "Anarchist", "Hooligan", "Thug", "Associate", "Prospect", "Gangster", "Brawler", "Footsoldier", "HeavyHitter", "Psycho", "Killer", "Hired Gun", "Cleaner", "Fixer", "Hitman" }
	local title_e = { "Recruit", "Officer Second Grade", "Officer First Grade", "Senior Patrolman", "Master Patrolman", "Lance Corporal", "Corporal", "Senior Corporal", "Sergeant", "Detective Third Grade", "Detective Second Grade", "Detective First Grade", "Detective Sergeant", "Detective Lieutenant", "Leuitenant", "Captian", "Deputy Inspector", "Inspector", "District Commander" }
	local bad_names = { "nil", "false", "true", "empty slot", "character name", "Recruit", "Officer Second Grade", "Officer First Grade", "Senior Patrolman", "Master Patrolman", "Lance Corporal", "Corporal", "Senior Corporal", "Sergeant", "Detective Third Grade", "Detective Second Grade", "Detective First Grade", "Detective Sergeant", "Detective Lieutenant", "Leuitenant", "Captian", "Deputy Inspector", "Inspector", "District Commander", "Scrub", "Lookout", "Burglar", "Looter", "Rioter", "Anarchist", "Hooligan", "Thug", "Associate", "Prospect", "Gangster", "Brawler", "Footsoldier", "HeavyHitter", "Psycho", "Killer", "Hired Gun", "Cleaner", "Fixer", "Hitman" }
	local tables = { threat_sql, threat, rank_sql, rank, title_c_sql, title_c, title_e_sql, title_e, bad_names_sql, bad_names }
	local tables_s = { "nil", "threat", "nil", "rank", "nil", "title_c", "nil", "title_e", "nil", "bad_names" }
	--Generic function to replace the below functions
	for k,v in ipairs ( tables ) do
		if math.fmod (k, 2) == 1 then
			k2 = k+1
			if #v < 1 then
				for i=1,#tables[k2] do
					executeSQLInsert ( "apb_data", "'"..tostring ( tables[k2][i] ).."'", "'"..tables_s[k2].."'" )
				end
			else
				for j,l in ipairs ( tables[k2] ) do
					local name1 = executeSQLSelect ( "apb_data", tables_s[k2], tables_s[k2].." = '" ..tables[k2][j].. "'" )
					if name1[1] == nil then
						executeSQLInsert ( "apb_data", "'"..tostring ( tables[k2][j] ).."'", "'"..tables_s[k2].."'" )
					end
				end
			end
		end
	end
	for k,v in ipairs ( resources ) do
		v = getResourceFromName ( v )
		startResource ( v, false, false )
	end
end

addEventHandler ("onResourceStart", getResourceRootElement ( getThisResource() ), resourceStart )